<?php
  session_start();

  if(!isset($_SESSION['isLogged'])){
    header('Location: index.php');
  }
  $now=time();
  if($now>$_SESSION['expired']){
    session_unset();
    session_destroy();
    header('Location: index.php');
  }

?>

<!DOCTYPE html>
<html>
  <head>
    <title>Perjalanan Luar Negeri</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="css/nav.css" rel="stylesheet" media="screen">
    <link href="bootstrap/datepicker/css/datepicker.css" rel="stylesheet" media="screen">
    <link rel="stylesheet" type="text/css" href="datatables/css/jquery.dataTables.css">
    <link rel="stylesheet" type="text/css" href="css/datatables.css">
    <link href="css/jquery.pnotify.default.css" media="all" rel="stylesheet" type="text/css" />
    <link href="css/pin/jquery.pnotify.default.icons.css" media="all" rel="stylesheet" type="text/css" />
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="../../assets/js/html5shiv.js"></script>
      <script src="../../assets/js/respond.min.js"></script>
    <![endif]-->
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

    <script src="js/jquery-1.10.1.min.js"></script>
  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/smoothness/jquery-ui.css" media="all" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.js"></script>
    
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="bootstrap/js/bootstrap.min.js"></script>
    
    <script src="bootstrap/datepicker/js/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="js/datatables.js"></script>
    <script type="text/javascript" src="js/pdfobject.js"></script>
    <script type="text/javascript" src="js/jquery.pnotify.min.js"></script>
  </head>

</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" id="navbar">
      <div class="container">
        <div class="navbar-collapse collapse nav-divider" >
          <ul  class="nav navbar-nav">
            <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Usulan Ijin<span class="caret"></span></a>
                <ul id="menu_parent" class="dropdown-menu">
                  <li><a id="usulan_peg" href="usulan_peg">Pegawai</a></li>
                  <li><a id="usulan_kppn" href="usulan_kppn">Eselon III</a></li>
                  <li><a id="usulan" href="usulan">Eselon II</a></li>
                </ul>
            </li>
            </ul>
            <ul id="menu_parent" class="nav navbar-nav">
            <li><a id="proses" href="proses">Proses</a></li>
            <li><a id="laporan" href="monitoring">Pencarian</a></li>
            <!-- <li><a id="ubah" href="ubah">Ubah Password</a></li> -->
            <li><a id="daftar" href="daftar">Profil User</a></li>
            </li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#" id="nip_logged">NIP</a></li>
            <li><a href="#" id="kewenangan_logged">Kewenangan</a></li>
            <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Keluar <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="portal.php">Kembali ke Portal</a></li>
                <li><a href="logout.php">Logout</a></li>
              </ul>
            </li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
<div class="container">

      <!-- Main component for a primary marketing message or call to action -->
      <div  class="jumbotron">
          <div id="isi">
                
          </div>
      </div>

    </div> <!-- /container -->
 

 <script type="text/javascript" src="js/menu.js" ></script>
 <script type="text/javascript">
  $(function(){

    $.getJSON('controller/cont.monitoring.php',{aksi_notifikasi:true},function(data){
      if(data.msg){
          $.pnotify.defaults.styling = "jqueryui";
          $.pnotify.defaults.history = false;
          $.pnotify({
              pnotify_title: "Pesan", 
              pnotify_text: data.pesan,
              addclass: "stack-bottomleft",
              hide: false,
            });
      }
    });

});
</script>
</body>
</html>
